<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ADIN1110 Device Driver API Reference Manual: C:/JenkinsSlaveIPNSW/workspace/10spe-drv_release_adin1110-1.1.0/common/hal/hal.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ADIN1110 Device Driver API Reference Manual
   &#160;<span id="projectnumber">1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('hal_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">hal.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) 2020, 2021 Analog Devices, Inc. All Rights Reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * This software is proprietary to Analog Devices, Inc.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * and its licensors.By using this software you agree to the terms of the</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * associated Analog Devices Software License Agreement.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#ifndef HAL_H</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define HAL_H</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;stdbool.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;adi_eth_common.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;hal_port_specific.h&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="group__hal.html#ga350feb21cb7b37262e647cd01d79ab0c">   31</a></span>&#160;<span class="preprocessor">#define ADI_HAL_SUCCESS         (0)</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="group__hal.html#ga4dcc1bd80190937d1265b495e3ae5c2d">   33</a></span>&#160;<span class="preprocessor">#define ADI_HAL_ERROR           (1)</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="group__hal.html#gac33d196c9d0e3fd7162d166aa4ab4068">   36</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_ENTER_CRITICAL_SECTION(...)     __disable_irq()</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="group__hal.html#gab274db234aa9b9f21aa2a9fec9982881">   38</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_EXIT_CRITICAL_SECTION(...)      __enable_irq()</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="group__hal.html#ga9d0bdb07f03cba5601b74d5c950bc3d0">   43</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="group__hal.html#ga9d0bdb07f03cba5601b74d5c950bc3d0">HAL_Callback_t</a>) (</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordtype">void</span>      *pCBParam,            </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    uint32_t   Event,               </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">void</span>      *pArg                 </div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    );         </div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#if !defined(ADI_HAL_USE_DEVICE_HANDLE)</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="group__hal.html#gaebdfc29abdb35df603e1524a788dcc2f">   67</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_INIT(dev, ...)                  HAL_Init_Hook(__VA_ARGS__)</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group__hal.html#gaffd80cf0242fdbdfc5e4793542b92b17">   76</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_UNINIT(dev, ...)                HAL_UnInit_Hook(__VA_ARGS__)</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#if defined(ADIN1100)</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#define     ADI_HAL_PHY_READ(dev, ...)              HAL_PhyRead(__VA_ARGS__)</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#define     ADI_HAL_PHY_WRITE(dev, ...)             HAL_PhyWrite(__VA_ARGS__)</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__hal.html#ga943b79b1a0361b673896a2f8d3fe981d">  106</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_ENABLE_IRQ(dev, ...)            HAL_EnableIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="group__hal.html#ga8b1b429477addbb2a6bf8ada16efbb09">  115</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_DISABLE_IRQ(dev, ...)           HAL_DisableIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="group__hal.html#gad145c4dc62d567bec1f18d44898e820a">  124</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_GET_ENABLE_IRQ(dev, ...)        HAL_GetEnableIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="group__hal.html#ga3e93b72d292f0502dc36e198f94878b7">  133</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_SET_PENDING_IRQ(dev, ...)       HAL_SetPendingIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="group__hal.html#gaa19b65d2b48fe0db33c3b678a6bfe019">  142</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_GET_PENDING_IRQ(dev, ...)       HAL_GetPendingIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="group__hal.html#ga397afd726b258f4ce77675c84c217044">  151</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_REGISTER_CALLBACK(dev, ...)     HAL_RegisterCallback(__VA_ARGS__)</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">#if defined(ADIN1110) || defined(ADIN2111)</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="group__hal.html#ga9e9c3fe1024b98680c8830b2d9ca3f87">  162</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_SPI_REGISTER_CALLBACK(dev, ...) HAL_SpiRegisterCallback(__VA_ARGS__)</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="group__hal.html#ga31670c7217c2d66ef5632dec25816c4d">  171</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_SPI_READ_WRITE(dev, ...)        HAL_SpiReadWrite(__VA_ARGS__)</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="group__hal.html#gabb6683045f0fbf689e093efa3d9be9ae">  180</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_FCS_INIT(dev, ...)              HAL_FcsInit(__VA_ARGS__)</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="group__hal.html#ga1811f7145a1a0216096d8eb66292a6f2">  189</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_FCS_UNINIT(dev, ...)            HAL_FcsUnInit(__VA_ARGS__)</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="group__hal.html#ga2d1ca657025a01ba1ef4c9fcd0d29065">  198</a></span>&#160;<span class="preprocessor">#define     ADI_HAL_FCS_CALCULATE(dev, ...)         HAL_FcsCalculate(__VA_ARGS__)</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#if defined(ADIN1100)</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;uint32_t        HAL_PhyRead             (uint8_t phyAddr, uint32_t regAddr, uint16_t *data);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;uint32_t        HAL_PhyWrite            (uint8_t phyAddr, uint32_t regAddr, uint16_t data);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="group__hal.html#gaf420bbd7b8719b91aea20ec7c48448f5">  264</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#gaf420bbd7b8719b91aea20ec7c48448f5">HAL_EnableIrq</a>           (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="group__hal.html#ga9bca72e8e06bf468016b799d6a084ee6">  277</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga9bca72e8e06bf468016b799d6a084ee6">HAL_DisableIrq</a>          (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; </div>
<div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="group__hal.html#ga6ada7643f2b0ee86b21ffa1fb589d9b6">  290</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga6ada7643f2b0ee86b21ffa1fb589d9b6">HAL_GetEnableIrq</a>        (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno"><a class="line" href="group__hal.html#ga29362f60ae07b6fbf17e21c0765da938">  304</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga29362f60ae07b6fbf17e21c0765da938">HAL_SetPendingIrq</a>       (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160; </div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="group__hal.html#gafae8cf4942488b983dd9af3b6b1efa89">  317</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#gafae8cf4942488b983dd9af3b6b1efa89">HAL_GetPendingIrq</a>       (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; </div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="group__hal.html#ga408cfb6c28a0995a941b5b484d39a303">  334</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga408cfb6c28a0995a941b5b484d39a303">HAL_RegisterCallback</a>    (<a class="code" href="group__hal.html#ga9d0bdb07f03cba5601b74d5c950bc3d0">HAL_Callback_t</a> <span class="keyword">const</span> *intCallback, <span class="keywordtype">void</span> *hDevice);</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160; </div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="preprocessor">#if defined(ADIN1110) || defined(ADIN2111)</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="group__hal.html#gaa07a66420e4d1319a1af4bff076a4c57">  352</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#gaa07a66420e4d1319a1af4bff076a4c57">HAL_SpiRegisterCallback</a> (<a class="code" href="group__hal.html#ga9d0bdb07f03cba5601b74d5c950bc3d0">HAL_Callback_t</a> <span class="keyword">const</span> *spiCallback, <span class="keywordtype">void</span> * hDevice);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="group__hal.html#ga353e24081d130c60854ae7bfc9a80cbf">  371</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga353e24081d130c60854ae7bfc9a80cbf">HAL_SpiReadWrite</a> (uint8_t *pBufferTx, uint8_t *pBufferRx, uint32_t nbBytes, <span class="keywordtype">bool</span> useDma);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno"><a class="line" href="group__hal.html#gaeda6fdf070dc69ffbf7c5b560a938a75">  384</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#gaeda6fdf070dc69ffbf7c5b560a938a75">HAL_FcsInit</a> (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; </div>
<div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="group__hal.html#ga2d40372c298c1f5e251573f58c95db17">  397</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga2d40372c298c1f5e251573f58c95db17">HAL_FcsUnInit</a> (<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno"><a class="line" href="group__hal.html#ga0667fa563941c3ee8f721718fc4a8cc4">  413</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga0667fa563941c3ee8f721718fc4a8cc4">HAL_FcsCalculate</a> (uint8_t *pBuf, uint32_t nbBytes);</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160; </div>
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="group__hal.html#ga0ff49d8c92be5598dafa57888c383a31">  429</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#ga0ff49d8c92be5598dafa57888c383a31">HAL_Init_Hook</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160; </div>
<div class="line"><a name="l00443"></a><span class="lineno"><a class="line" href="group__hal.html#gae6f1995650ceb43876df44deb688901e">  443</a></span>&#160;uint32_t        <a class="code" href="group__hal.html#gae6f1995650ceb43876df44deb688901e">HAL_UnInit_Hook</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; </div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160; </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;<span class="preprocessor">#define     ADI_HAL_INIT(...)                       HAL_Init_Hook(__VA_ARGS__)</span></div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160; </div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="preprocessor">#define     ADI_HAL_UNINIT(...)                     HAL_UnInit_Hook(__VA_ARGS__)</span></div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160; </div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;<span class="preprocessor">#define     ADI_HAL_PHY_READ(...)                   HAL_PhyRead(__VA_ARGS__)</span></div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160; </div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;<span class="preprocessor">#define     ADI_HAL_PHY_WRITE(...)                  HAL_PhyWrite(__VA_ARGS__)</span></div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160; </div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;<span class="preprocessor">#define     ADI_HAL_ENABLE_IRQ(...)                 HAL_EnableIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160; </div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;<span class="preprocessor">#define     ADI_HAL_DISABLE_IRQ(...)                HAL_DisableIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160; </div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;<span class="preprocessor">#define     ADI_HAL_GET_ENABLE_IRQ(...)             HAL_GetEnableIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160; </div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;<span class="preprocessor">#define     ADI_HAL_SET_PENDING_IRQ(...)            HAL_SetPendingIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160; </div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;<span class="preprocessor">#define     ADI_HAL_GET_PENDING_IRQ(...)            HAL_GetPendingIrq(__VA_ARGS__)</span></div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160; </div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;<span class="preprocessor">#define     ADI_HAL_REGISTER_CALLBACK(...)          HAL_RegisterCallback(__VA_ARGS__)</span></div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160; </div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;<span class="preprocessor">#define     ADI_HAL_SPI_REGISTER_CALLBACK(...)      HAL_SpiRegisterCallback(__VA_ARGS__)</span></div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160; </div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;<span class="preprocessor">#define     ADI_HAL_SPI_READ_WRITE(...)             HAL_SpiReadWrite(__VA_ARGS__)</span></div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160; </div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;<span class="preprocessor">#define     ADI_HAL_FCS_INIT(...)                   HAL_FcsInit(__VA_ARGS__)</span></div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160; </div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;<span class="preprocessor">#define     ADI_HAL_FCS_UNINIT...)                  HAL_FcsUnInit(__VA_ARGS__)</span></div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;<span class="preprocessor">#define     ADI_HAL_FCS_CALCULATE(...)              HAL_FcsCalculate(__VA_ARGS__)</span></div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160; </div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160; </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;}</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160; </div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* HAL_H */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160; </div>
<div class="ttc" id="agroup__hal_html_ga0667fa563941c3ee8f721718fc4a8cc4"><div class="ttname"><a href="group__hal.html#ga0667fa563941c3ee8f721718fc4a8cc4">HAL_FcsCalculate</a></div><div class="ttdeci">uint32_t HAL_FcsCalculate(uint8_t *pBuf, uint32_t nbBytes)</div><div class="ttdoc">HAL Frame check sequence (FCS) calculation.</div></div>
<div class="ttc" id="agroup__hal_html_ga0ff49d8c92be5598dafa57888c383a31"><div class="ttname"><a href="group__hal.html#ga0ff49d8c92be5598dafa57888c383a31">HAL_Init_Hook</a></div><div class="ttdeci">uint32_t HAL_Init_Hook(void)</div><div class="ttdoc">HAL initialization hook.</div></div>
<div class="ttc" id="agroup__hal_html_ga29362f60ae07b6fbf17e21c0765da938"><div class="ttname"><a href="group__hal.html#ga29362f60ae07b6fbf17e21c0765da938">HAL_SetPendingIrq</a></div><div class="ttdeci">uint32_t HAL_SetPendingIrq(void)</div><div class="ttdoc">Set pending interrupt.</div></div>
<div class="ttc" id="agroup__hal_html_ga2d40372c298c1f5e251573f58c95db17"><div class="ttname"><a href="group__hal.html#ga2d40372c298c1f5e251573f58c95db17">HAL_FcsUnInit</a></div><div class="ttdeci">uint32_t HAL_FcsUnInit(void)</div><div class="ttdoc">HAL Frame check sequence (FCS) uninitialization.</div></div>
<div class="ttc" id="agroup__hal_html_ga353e24081d130c60854ae7bfc9a80cbf"><div class="ttname"><a href="group__hal.html#ga353e24081d130c60854ae7bfc9a80cbf">HAL_SpiReadWrite</a></div><div class="ttdeci">uint32_t HAL_SpiReadWrite(uint8_t *pBufferTx, uint8_t *pBufferRx, uint32_t nbBytes, bool useDma)</div><div class="ttdoc">HAL SPI read/write.</div></div>
<div class="ttc" id="agroup__hal_html_ga408cfb6c28a0995a941b5b484d39a303"><div class="ttname"><a href="group__hal.html#ga408cfb6c28a0995a941b5b484d39a303">HAL_RegisterCallback</a></div><div class="ttdeci">uint32_t HAL_RegisterCallback(HAL_Callback_t const *intCallback, void *hDevice)</div><div class="ttdoc">Register device IRQ callback function.</div></div>
<div class="ttc" id="agroup__hal_html_ga6ada7643f2b0ee86b21ffa1fb589d9b6"><div class="ttname"><a href="group__hal.html#ga6ada7643f2b0ee86b21ffa1fb589d9b6">HAL_GetEnableIrq</a></div><div class="ttdeci">uint32_t HAL_GetEnableIrq(void)</div><div class="ttdoc">Get interrupt enable status.</div></div>
<div class="ttc" id="agroup__hal_html_ga9bca72e8e06bf468016b799d6a084ee6"><div class="ttname"><a href="group__hal.html#ga9bca72e8e06bf468016b799d6a084ee6">HAL_DisableIrq</a></div><div class="ttdeci">uint32_t HAL_DisableIrq(void)</div><div class="ttdoc">Interrupt disable.</div></div>
<div class="ttc" id="agroup__hal_html_ga9d0bdb07f03cba5601b74d5c950bc3d0"><div class="ttname"><a href="group__hal.html#ga9d0bdb07f03cba5601b74d5c950bc3d0">HAL_Callback_t</a></div><div class="ttdeci">void(* HAL_Callback_t)(void *pCBParam, uint32_t Event, void *pArg)</div><div class="ttdoc">Callback function definition for HAL.</div><div class="ttdef"><b>Definition:</b> hal.h:43</div></div>
<div class="ttc" id="agroup__hal_html_gaa07a66420e4d1319a1af4bff076a4c57"><div class="ttname"><a href="group__hal.html#gaa07a66420e4d1319a1af4bff076a4c57">HAL_SpiRegisterCallback</a></div><div class="ttdeci">uint32_t HAL_SpiRegisterCallback(HAL_Callback_t const *spiCallback, void *hDevice)</div><div class="ttdoc">Register SPI IRQ callback function.</div></div>
<div class="ttc" id="agroup__hal_html_gae6f1995650ceb43876df44deb688901e"><div class="ttname"><a href="group__hal.html#gae6f1995650ceb43876df44deb688901e">HAL_UnInit_Hook</a></div><div class="ttdeci">uint32_t HAL_UnInit_Hook(void)</div><div class="ttdoc">HAL uninitialization hook.</div></div>
<div class="ttc" id="agroup__hal_html_gaeda6fdf070dc69ffbf7c5b560a938a75"><div class="ttname"><a href="group__hal.html#gaeda6fdf070dc69ffbf7c5b560a938a75">HAL_FcsInit</a></div><div class="ttdeci">uint32_t HAL_FcsInit(void)</div><div class="ttdoc">HAL Frame check sequence (FCS) initialization.</div></div>
<div class="ttc" id="agroup__hal_html_gaf420bbd7b8719b91aea20ec7c48448f5"><div class="ttname"><a href="group__hal.html#gaf420bbd7b8719b91aea20ec7c48448f5">HAL_EnableIrq</a></div><div class="ttdeci">uint32_t HAL_EnableIrq(void)</div><div class="ttdoc">Interrupt enable.</div></div>
<div class="ttc" id="agroup__hal_html_gafae8cf4942488b983dd9af3b6b1efa89"><div class="ttname"><a href="group__hal.html#gafae8cf4942488b983dd9af3b6b1efa89">HAL_GetPendingIrq</a></div><div class="ttdeci">uint32_t HAL_GetPendingIrq(void)</div><div class="ttdoc">Get pending interrupt.</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_9c2df41621e55a52376835fd7249f524.html">hal</a></li><li class="navelem"><b>hal.h</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
